﻿@model Tasks.UI.Models.Article.ArticleModel
@{
    ViewBag.Tab = "info";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="/css/main.css" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
    <link href="@Config.GetCssResourcePath("flag.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.combobox.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/global.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //init
        $(function () {
            datePicker("#PlanStartTime");
            datePicker("#PlanEndTime");
            datePicker("#PracticalStartTime");
            datePicker("#PracticalEndtTime");
            $.ctrl.employeeDropdownList("OperatorName", "OperatorID");
        })

        function goaction(act) {
            $("#act").val(act);
            $("form").submit();
        }
    </script>
    <style type="text/css">
        #large
        {
            position: absolute;
            display: none;
            z-index: 999;
        }
    </style>
</head>
<body>
    @using (Html.BeginForm("Edit", "Bug", new { ID = Model.ID, ParentID = Model.ParentID }, FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <input id="act" name="act" type="hidden" />
        <div id="container">
            @Html.OutputNavigation("任务信息编辑")
            @Html.OutputMessage(Model.Message, Model.MessageType)
            <table style="width: 100%;" class="tblStyle1">
                <tr>
                    <td style="width: 120px;" class="c">
                        项目:
                    </td>
                    <td colspan="3">
                        @Html.DropDownList("ProjectID", PageHelper.ProjectType(Model.ProjectID))&nbsp;&nbsp;
                        <span style="color: Red">置顶</span> @Html.CheckBoxFor(t => t.IsTop)
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px;" class="c">
                        类型:
                    </td>
                    <td colspan="3">
                        @Html.DropDownList("Type", PageHelper.TaskTypeSelector(Model.Type))
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        问 &nbsp;&nbsp; 题：
                    </td>
                    <td colspan="3">@Html.TextBoxFor(t => t.Title, new { style = "width:400px;" })
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        描 &nbsp;&nbsp; 述：
                    </td>
                    <td>
                        @Html.TextAreaFor(t => t.Content, new { style = "width:400px;height:100px;" })
                    </td>
                    <td>
                        @if (!string.IsNullOrEmpty(Model.Images))
                        {
                            <img id="Img" src="@Config.GetResourceUrl(Model.Images)" alt="" border="0" width="200px" height="105px"/>
                        }
                        <div id="large">
                        </div>
                    </td>
                    <td colspan="2">
                        <img src="/images/album_upload_dtbg.jpg" alt="" border="0" width="158px" height="55px" />
                        <input id="ImgPaths" type="hidden" name="ImgPaths" value="@Model.Images"/>
                        <ul>
                            <li>
                                <input id="File1" name="files" type="file" /></li>
                            <li>(JPG、PNG格式，JPG品质可在9-10之间，为保证最佳效果,尺寸建议为158*55)</li>
                        </ul>
                    </td>
                </tr>
                <tr>
                </tr>
                <tr>
                    <td class="c">
                        计划开始日期:
                    </td>
                    <td colspan="3">
                        @Html.TextBoxFor(t => t.PlanStartTime)
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        计划结束日期：
                    </td>
                    <td colspan="3">
                        @Html.TextBoxFor(t => t.PlanEndTime)
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        实际开始日期:
                    </td>
                    <td colspan="3">
                        @Html.TextBoxFor(t => t.PracticalStartTime)
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        实际结束日期：
                    </td>
                    <td colspan="3">
                        @Html.TextBoxFor(t => t.PracticalEndtTime)
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        状 &nbsp;&nbsp; 态:
                    </td>
                    <td colspan="3">
                        @Html.DropDownList("State", PageHelper.StateSelector(Model.State))
                    </td>
                </tr>
                <tr>
                    <td class="c">
                        处 理 人:
                    </td>
                    <td colspan="3">
                        @Html.HiddenFor(t => t.OperatorID)
                        @Html.TextBoxFor(t => t.OperatorName)
                    </td>
                </tr>
                <tr>
                    <td class="c">
                    </td>
                    <td colspan="3">
                        <button id="Submit1" class="blue" type="submit">
                            <span>保存</span>
                        </button>
                        <button id="Submit1" class="blue" type="button" onclick="goaction('save2add')">
                            <span>保存继续添加</span>
                        </button>
                    </td>
                </tr>
            </table>
        </div>
    }
</body>
</html>
